<div style="padding: 20px; background-color: #F2F2F2;">
  <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">公司信息</div>
          <div class="layui-card-body">
            <div class="layui-row">
              <div class="layui-col-md4">
                公司名称: <?=$info['title']?><br>
                公司电话: <?=$info['c_phone']?><br>
                公司联系人: <?=$info['username']?><br>
                公司状态: <?=c("type.status")[$info['c_status']]?><br>
                备注: <?=$info['c_note']?><br>
                时间: <?=com_time_format($info['c_create_time'])?><br>
              </div>
              <div class="layui-col-md4">
                员工姓名: <?=$info['w_name']?><br>
                员工电话: <?=$info['w_phone']?><br>
                员工年龄: <?=$info['age']?><br>
                员工性别: <?=c("type.sex")[$info['sex']]?><br>
                员工地址: <?=$info['w_address']?><br>
                员工区域: <?=$info['area']?><br>
                员工状态: <?=c("type.status")[$info['w_status']]?><br>
                员工评分: <div id="test1"></div><br>
              </div>
          </div>
          </div>
        </div>
      </div>


          <div class="layui-col-md12">
            <div class="layui-card">
              <div class="layui-card-header">订单信息</div>
              <div class="layui-card-body">
                <div class="layui-row">
                  <div class="layui-col-md4">
                    下单人姓名: <?=$info['u_name']?><br>
                    下单人电话: <?=$info['u_phone']?><br>
                    下单人等级: <?=c("type.user_level")[$info['u_level']]?><br>
                    下单人地址: <?=$info['u_address']?><br>
                  </div>
                  <div class="layui-col-md4">
                  订单编号: <?=$info['order_no']?><br>
                  订单销售价: <?=$info['price']?><br>
                  订单成本价: <?=$info['cost_price']?><br>
                  订单产生PV: <?=$info['pv']?><br>
                  订单实收: <?=$info['o_money']?><br>
                  下单时间: <?=com_time_format($info['o_create_time'])?><br>
                  订单状态: <?=c("type.order_goods_status")[$info['o_status']]?><br>
                  </div>
                  <div class="layui-col-md4">
                  服务开始时间: <?=com_time_format($info['start_time'])?><br>
                  服务结束时间: <?=com_time_format($info['end_time'])?><br>
                  服务次数: <?=$info['fw_times']?><br>
                  服务地点: <?=$info['fw_address']?><br>
                  服务联系人: <?=$info['fw_name']?><br>
                  服务联系电话: <?=$info['fw_phone']?><br>
                  备注: <?=$info['o_note']?><br>
                  服务反馈: <?=$info['fw_note']?><br>
                </div>
              </div>
              </div>
            </div>
          </div>
          <?php if($info['o_status']==0):?>
          <div class="layui-col-md12">
              <div class="layui-card">
                <div class="layui-card-body">
                  <form class="layui-form" action="<?=url('Ordergoods/upstatus');?>">
                      <input type="hidden" name="id" value="<?=$info['id']?>" />
                      <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" value="1" title="完成订单" checked>
                            <input type="radio" name="status" value="2" title="取消订单">
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <label class="layui-form-label">服务反馈</label>
                        <div class="layui-input-block">
                            <textarea name="fw_note"  required lay-verify="required" placeholder="请输入服务反馈" class="layui-textarea"></textarea>
                        </div>
                      </div>
                    <div class="layui-form-item">
                      <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                      </div>
                    </div>
                  </form>
                </div>
              </div>
          </div>
        <?php endif;?>
  </div>

</div>
<script>
layui.use(['form','rate'], function(){
  var $ = layui.$
  ,form = layui.form
  ,rate = layui.rate;
  form.render();
  var ue = UE.getEditor('container');
  //基础效果
  rate.render({
    elem: '#test1'
    ,value: <?=$info['score']?> //初始值
    ,half: true //开启半星
    ,readonly: true //只读
    ,setText: function(value){
      $("#score").val(value);
    }
  })
});
</script>
